From 2832dba652c6977db586a3c8b0c85cd50cf90e82 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Tue, 29 Nov 2005 14:56:16 +0000 Subject: [PATCH] Replace grep >&/dev/null with grep -q. Signed-off-by: Ewan Mellor --- tools/examples/vif-bridge | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/examples/vif-bridge b/tools/examples/vif-bridge index 5144339498..e816c8146a 100755 --- a/tools/examples/vif-bridge +++ b/tools/examples/vif-bridge @@ -48,7 +48,7 @@ fi case "$command" in online) - if brctl show | grep "$vif" >&/dev/null + if brctl show | grep -q "$vif" then log debug "$vif already attached to a bridge" exit 0 -- 2.30.2